package mytest;

public class Shape {   
    
    private int i=10;   
    public Shape(){   
    i = 20;   
    print();   
    }   
    public Shape(int m){   
      
    i = m;   
    print();   
      
    }   
    public void print(){   
    System.out.println("This shape=>"+i);   
    }
    
    public static void main(String[] args){   
    	Shape shap = new Circle();   
    	
    	
    } 
    
    } 

      
    class Circle extends Shape{   
      
    private int i = 20;   
      
    public void print(){   
    System.out.println("this circle=>"+i);   
    }   
    public Circle(){   
    this.i = 30;   
    print();   
    super.print(); //因为父类为私有的print，不能在这个类里调用。  
      
    }   
      
      
    }   
   